<?php require_once($_SERVER['DOCUMENT_ROOT']."/defaultconf.mex");
require_once($GLOBALS['PAD']."Modules/FTK9D4D0/modconf.mex");
MYTCONN(); ?>
<div id="Filters" class="Line">
    <?php
    $DefSelect = '------------------------ Todos ------------------------';
    //==========================Vars===========================
    $cb_Banco = 0;
    $Country = 76;

    $Origen0 = null;
    $Corresponsal = null;
    $Status = 2;

    $OrderAD1 = 'ASC';
    $OrderAD2 = 'ASC';
    $OrderAD3 = 'ASC';

    $OrderBy1 = null;
    $OrderBy2 = null;
    $OrderBy3 = null;

    if(isset($_POST['cb_Banco']) && $_POST['cb_Banco'] != '') {
    $cb_Banco = $_POST['cb_Banco'];
    }

    if(isset($_POST['FraOrigen0']) && $_POST['FraOrigen0'] != '') {
    $Origen1 = $_POST['FraOrigen0'];
    }
    if(isset($_POST['FraCorresponsal']) && $_POST['FraCorresponsal'] != '') {
    $Origen2 = $_POST['FraCorresponsal'];
    }
    if(isset($_POST['FraStatus']) && $_POST['FraStatus'] != '') {
    $Status = $_POST['FraStatus'];
    }

form_pr('IncidenceForm','','','post'); ?>
    <div style="height:146px;background-color:#F2F2F2">
    <?php  mn_field('hselect','ED','qrDateType',1,"Periodo#1",'','','" style="position:absolute;top:10px;left:10px'); ?>
    <div style="position:absolute;top:10px;left:80px"><?php echo 'De: ';
        mn_field('date','ED','TStart','','IncidenceForm','8','','');
        echo ' a: ';
        mn_field('date','ED','TEnd','','IncidenceForm','8','',''); ?></div>
    <label style="position:absolute;top:34px;left:10px">País</label>
    <?php
        $Qur = "SELECT pai_CodElite AS ID, pai_NombreESP AS NAME
                FROM hd_paises WHERE pai_ActivoGiros = 1";
        mn_field('select','ED','Country',0,$Qur,$DefSelect,'','" style="width:300px;position:absolute;top:30px;left:80px'); ?>
    <label style="position:absolute;top:54px;left:10px">Dominio</label>
    <?php
        $Qur = "SELECT dom_ID AS ID, CONCAT(RIGHT(dom_CorrCode,3),' ',dom_RazonSocial) AS NAME
                    FROM dominios WHERE dom_Activo = 1 ORDER BY dom_CorrCode";
        mn_field('select','ED','FraOrigen0',0,$Qur,$DefSelect,'','" style="width:300px;position:absolute;top:50px;left:80px" onchange="'); ?>
    <label style="position:absolute;top:94px;left:10px">Corresp.</label>
    <?php
        $Qur = "SELECT CorrNumero AS ID, CorrNombre AS NAME
                FROM corresponsales WHERE CorrActivo = 1";
        mn_field('select','ED','FraCorresponsal',0,$Qur,$DefSelect,'','" style="width:300px;position:absolute;top:90px;left:80px'); ?>
    <label style="position:absolute;top:114px;left:10px">Estado</label>
    <?php
        $Qur = "SELECT sttFlag AS ID, stt_Word AS NAME
                FROM hd_sysstatus WHERE stt_Sistema = 27";
        mn_field('select','ED','FraIciStatus',$Status,$Qur,$DefSelect,'','" style="width:300px;position:absolute;top:110px;left:80px'); ?>
    <label style="position:absolute;top:134px;left:10px">Canal</label>
    <?php mn_field('hselect','ED','FraModo',0,$DefSelect.";Saida;Entrada#0;1;2",'','','" style="width:300px;position:absolute;top:130px;left:80px'); ?>

    <label style="position:absolute;top:12px;left:390px">Referencia Co.</label>		<?php mn_field('checkbox','ED','VIEWColumns[]','FraIciCorrReferenceIci','checked','','','" style="position:absolute;top:10px;left:490px'); ?>
    <label style="position:absolute;top:30px;left:390px">Remetente</label>		<?php mn_field('checkbox','ED','VIEWColumns[]','FraCliNombre','','','','" style="position:absolute;top:28px;left:490px'); ?>
    <label style="position:absolute;top:48px;left:390px">Corresponsal</label>		<?php mn_field('checkbox','ED','VIEWColumns[]','FraCorresponsal','checked','','','" style="position:absolute;top:46px;left:490px'); ?>
    <label style="position:absolute;top:66px;left:390px">Beneficiario</label>		<?php mn_field('checkbox','ED','VIEWColumns[]','FraBnfNombre','','','','" style="position:absolute;top:64px;left:490px'); ?>
    <label style="position:absolute;top:82px;left:390px">C&acirc;mbio</label>		<?php mn_field('checkbox','ED','VIEWColumns[]','FraTasa','','','','" style="position:absolute;top:82px;left:490px'); ?>
    <label style="position:absolute;top:48px;left:670px">Dominio</label>		<?php mn_field('checkbox','ED','VIEWColumns[]','FraOrigen0','','','','" style="position:absolute;top:50px;left:790px'); ?>
    <label style="position:absolute;top:12px;left:520px">Estado</label>			<?php mn_field('checkbox','ED','VIEWColumns[]','FraIciStatus','checked','','','" style="position:absolute;top:10px;left:640px'); ?>
    <label style="position:absolute;top:30px;left:520px">Origen</label>			<?php mn_field('checkbox','ED','VIEWColumns[]','FraOrigen1','','','','" style="position:absolute;top:28px;left:640px'); ?>
    <label style="position:absolute;top:48px;left:520px">CPF</label>			<?php mn_field('checkbox','ED','VIEWColumns[]','FraBnfCedula','','','','" style="position:absolute;top:46px;left:640px'); ?>
    <label style="position:absolute;top:66px;left:520px">Loja</label>			<?php mn_field('checkbox','ED','VIEWColumns[]','FraOrigen0','','','','" style="position:absolute;top:64px;left:640px'); ?>
    <label style="position:absolute;top:30px;left:670px">Pais</label>			<?php mn_field('checkbox','ED','VIEWColumns[]','FraCorresponsal','','','','" style="position:absolute;top:30px;left:790px'); ?>
    <label style="position:absolute;top:12px;left:670px">ObservaÇ&otilde;es</label><?php mn_field('checkbox','ED','VIEWColumns[]','FraNotas','','','','" style="position:absolute;top:10px;left:790px'); ?>
    <label style="position:absolute;top:66px;left:670px">Modo Pagamento</label> 	<?php mn_field('checkbox','ED','VIEWColumns[]','FraModoPago','','','','" style="position:absolute;top:64px;left:790px'); ?>
    <label style="position:absolute;top:82px;left:670px">Agencia Pagamento</label> 	<?php mn_field('checkbox','ED','VIEWColumns[]','FraAgenciaPago','','','','" style="position:absolute;top:82px;left:790px'); ?>

    <label style="position:absolute;top:12px;left:820px">Ordenar por:</label><?php
        $Qur = 'Opera&ccedil&atildeo;Data;Enviado;A pagar;Status;CPF;Banco;Agencia;Tipo Conta#FraID;FraFechaIngreso;FraEnviado;FraARecibir;FraStatus;FraBnfCedula;cb_Banco;cb_Sucursal;cb_TipoCuenta';
        mn_field('hselect','ED','OrderBy1','',$Qur,'','','" style="position:absolute;top:30px;left:820px');
        $OrderOps = "ASC;DESC#ASC;DESC";
        mn_field('hselect','ED','OrderAD1','ASC',$OrderOps,'1','','" style="position:absolute;top:30px;left:898px');
        $Qur = ';Operaï¿½ï¿½o;Data;Enviado;A pagar;Status;CPF;Banco;Agencia;Tipo Conta#;FraID;FraFechaIngreso;FraEnviado;FraARecibir;FraStatus;FraBnfCedula;cb_Banco;cb_Sucursal;cb_TipoCuenta';
        mn_field('hselect','ED','OrderBy2','',$Qur,'','','" style="position:absolute;top:50px;left:820px');
        mn_field('hselect','ED','OrderAD2','ASC',$OrderOps,'1','','" style="position:absolute;top:50px;left:898px');
        mn_field('hselect','ED','OrderBy3','',$Qur,'','','" style="position:absolute;top:70px;left:820px');
        mn_field('hselect','ED','OrderAD3','ASC',$OrderOps,'1','','" style="position:absolute;top:70px;left:898px'); ?>

    <label style="position:absolute;top:95px;left:840px">Status:</label>
	<?php mn_field('checkbox','ED','BBar_Status','FraEnviado','','','','" style="position:absolute;top:93px;left:880px" disabled checked readonly="'); ?>

    <label style="position:absolute;top:95px;left:905px">Enviado</label>
	<?php mn_field('checkbox','ED','BBar_Status','FraCargo','','','','" style="position:absolute;top:111px;left:880px'); ?>
    <label style="position:absolute;top:113px;left:905px">Taxas</label>
	<?php
	mn_field('button','ED','IncidenceForm','Consultar','','','','" style="width:100px;position:absolute;top:110px;left:390px" onClick="
	document.IncidenceForm.action=\'Modules/FTK9D4D0/Lib/a05_ICIList.php\';
	subform(\'IncidenceForm\',\'ICIList\');'); ?>
        </div>
</form>
</div>
<div id="ICIList"></div>